package ace.model;

import java.sql.Timestamp;

import web.annotation.Column;
import web.annotation.Entity;
import web.annotation.Key;

@Entity("base_menu")
public class Menu {
	@Key
	private Integer id;
	@Column("parent_id")
	private Integer parentId;
	
	@Column("type_index")
	private Integer typeIndex;
	
	@Column("type_name")
	private String typeName;
	private Integer sort;
	private String title;
	private String url;
	private String icon;
	
	@Column("create_time")
	private Timestamp createTime;
	@Column("update_time")
	private Timestamp updateTime;
	private String statu;
	
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Integer getParentId() {
		return parentId;
	}
	public void setParentId(Integer parentId) {
		this.parentId = parentId;
	}
	public Integer getSort() {
		return sort;
	}
	public Integer getTypeIndex() {
		return typeIndex;
	}
	public void setTypeIndex(Integer typeIndex) {
		this.typeIndex = typeIndex;
	}
	public String getTypeName() {
		return typeName;
	}
	public void setTypeName(String typeName) {
		this.typeName = typeName;
	}
	public void setSort(Integer sort) {
		this.sort = sort;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public String getIcon() {
		return icon;
	}
	public void setIcon(String icon) {
		this.icon = icon;
	}
	public Timestamp getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}
	public Timestamp getUpdateTime() {
		return updateTime;
	}
	public void setUpdateTime(Timestamp updateTime) {
		this.updateTime = updateTime;
	}
	public String getStatu() {
		return statu;
	}
	public void setStatu(String statu) {
		this.statu = statu;
	}
	@Override
	public String toString() {
		return "{\"id\":\"" + id + "\", \"parentId\":\"" + parentId + "\", \"typeIndex\":\"" + typeIndex +"\", \"typeName\":\"" + typeName + "\", \"sort\":\"" + sort + "\", \"title\":\"" + title
				+ "\",\"url\":\"" + url + "\", \"icon\":\"" + icon + "\", \"createTime\":\"" + createTime + "\", \"updateTime\":\"" + updateTime
				+ "\", \"statu\":\"" + statu + "\"}";
	}
	
	
	
}
